package es.juanc.load.recursos;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class IOProperties {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {

		Map<String, String> map = new HashMap<String, String>();
		map.put("x", "xxx");
		map.put("y", "yyy");
		map.put("z", "zzz");

		Properties properties = new Properties();
		properties.putAll( map );

		//properties.store( new FileWriter( new File("store.properties") ), "XXX");
		properties.store( System.out, "XXX");

		System.out.println( "FIN" );
	}

}
